package db.utils;

import java.sql.SQLException;
import java.sql.Statement;

public  class SQLUtils {

	public static void executeUpdateAndVerify(Statement statement, String sql, int expectedValue) throws SQLException{
		int result = statement.executeUpdate(sql);
		
		if (result != expectedValue) {
				throw new SQLException("unexpected number of lines affected");
		}
	}
	
}
